package com.treasure.mall.biz.mapstruct;

import com.treasure.mall.biz.dto.life.ShopBusinessDTO;
import com.treasure.mall.biz.dto.life.ShopSaveDTO;
import com.treasure.mall.biz.entity.life.ShopBusinessScopePO;
import com.treasure.mall.biz.entity.life.ShopBusinessTagsPO;
import com.treasure.mall.biz.entity.life.ShopPO;
import com.treasure.mall.biz.vo.life.ShopBusinessVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;


/**
 * 
 * <p>
 * +---------------------------------------------------------
 * * @package: com.treasure.mall.biz.mapstruct
 * * @author: guomw (guomwchen@foxmail.com)
 * * @date: 2020/10/13 4:24 下午
 * * @since: V1.0.0
 * +---------------------------------------------------------
 * 注意：本内容仅限于内部传阅，禁止外泄以及用于其他的商业目的
 * 
 */
@Mapper
public interface LifeShopMapStruct {
    LifeShopMapStruct INSTANCE = Mappers.getMapper(LifeShopMapStruct.class);

    /**
     * ShopSaveDTO to ShopPO
     *
     * @param dto
     * @return
     */
    ShopPO shopDto2po(ShopSaveDTO dto);


    ShopBusinessVO tagsPo2dto(ShopBusinessTagsPO po);

    ShopBusinessVO scopesPo2dto(ShopBusinessScopePO po);


    List<ShopBusinessVO> scopesPos2vos(List<ShopBusinessScopePO> pos);

    List<ShopBusinessVO> tagsPos2vos(List<ShopBusinessTagsPO> pos);


    ShopBusinessTagsPO busDtoToTagsPo(ShopBusinessDTO dto);

    ShopBusinessScopePO busDtoToScopePo(ShopBusinessDTO dto);


}
